package cn.wolfcode.mapper;

import cn.wolfcode.domain.Question;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();

    int updateByPrimaryKey(Question record);

    List<Question> selectForList(QueryObject qo);

    List<Long> selectAllType(Integer type);

    //插入关联关系
    void  insertRelation(@Param("examId") Long examId, @Param("questionId") Set questionId, @Param("score") Integer score);
}